package chapter1

import (
	"fmt"
	"time"
)

func task(id int){
	for i:=0;i<5;i++{
		fmt.Println(id,":",i)
		time.Sleep(time.Second*3)
	}
}

func Test3()  {
	go task(1)
	go task(2)
	time.Sleep(time.Second*30)
}
